<template>
	<view :style="theme">
		<Homepage ref="homepageRef" :venueInfo="venueInfo" @bacBtn="bacBtn" />
	</view>
</template>
<script>
	import Homepage from "@/components/tab/index.vue";
	// #ifdef H5
	import wx from '@/common/jweixin.js';
	// #endif
	export default {
		components: {
			Homepage
		},
		data() {
			return {
				venueInfo: {},
				venueList: []
			}
		},
		onLoad(ops) {
			this.getVenueInfo(ops.id)
		},

		methods: {
			// 获取场馆详细信息
			getVenueInfo(id) {
				this.$app.ajax({
					api: this.$api.getVenueInfo(),
					data: {
						param: {
							id
						}
					}
				}).then((res) => {
					if (res.errorCode === '000000') {
						this.venueInfo = res.record
						this.$refs.homepageRef.showTab('start')
					}
				}).catch(() => {})
			}
		}

	}
</script>